<?php if (!defined('THINK_PATH')) exit();?><!doctype html>
<html>
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>我的博客</title>
    <link rel="stylesheet" href="__STATIC__/bs/css/bootstrap.min.css">
</head>
<body>
<!-- Static navbar -->
<div class="navbar navbar-default navbar-static-top" role="navigation">
    <div class="container">

        <div class="navbar-collapse collapse">
            <ul class="nav navbar-nav" id="navBar">
                <li><a href="<?php echo U('/Index');?>">文章列表</a></li>

            </ul>

            <ul class="nav navbar-nav navbar-left">
                <li><a href="<?php echo U('/Public/login');?>">管理员入口</a></li>
            </ul>
            <ul class="nav navbar-nav navbar-right">
                <li><a href="<?php echo U('/Public/logout');?>">注销</a></li>
            </ul>

        </div>
    </div>
</div>


<form action="<?php echo U('update');?>" method="post">
    <table class="table">
        <tr>
            <td>标题</td>
            <td>&nbsp;&nbsp;&nbsp;</td>
            <td>
                <input type="text" name="title" class="form-control" value="<?php echo ($vo["title"]); ?>"/>
            </td>
        </tr>

        <td>正文</td>
        <td>&nbsp;&nbsp;&nbsp;</td>
        <td>
            <textarea  cols="200" rows="60" id="desc"name="content" class="form-control"><?php echo ($vo["content"]); ?></textarea>

        </td>
        </tr>
        <tr>
            <td colspan="2" class="text-center">
                <input type="submit" value="提交" class="btn btn-primary"/>
                <input type="hidden" name="id" value="<?php echo ($vo["id"]); ?>"/>
            </td>
        </tr>

    </table>
</form>